package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("order_item")
@ApiModel(value = "OrderItem对象", description = "订单详情表")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单ID")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("商品ID")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty("商品图片")
    @TableField("content_img_url")
    private String contentImgUrl;

    @ApiModelProperty("商品标题")
    @TableField("content_title")
    private String contentTitle;

    @ApiModelProperty("商品数量")
    @TableField("content_num")
    private Integer contentNum;

    @ApiModelProperty("折扣")
    @TableField("content_discount")
    private BigDecimal contentDiscount;

    @ApiModelProperty("商品单价")
    @TableField("sale_unit_price")
    private BigDecimal saleUnitPrice;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
